public class Computer {
    private String cpu;
    private String memory;
    public String screen;
    public static String brand;

    {
        System.out.println("我是构造代码块代码");
    }

    static {
        System.out.println("我是静态代码块");

    }
    public Computer(String cpu, String memory, String screen, String brand) {
        this.cpu = cpu;
        this.memory = memory;
        this.screen = screen;
        this.brand = brand;
    }
    public void Boot() {
        System.out.println("关机------");
    }

    /*public static void main(String[] args) {
        Computer computer = new Computer("因特尔","1TB","彩虹","天选");

    }*/
}
